<div class="box-body">
    <form class="layui-form" action="{:url('system/jobf/save')}" method="post">
        <div class="layui-form-item">
            <label class="layui-form-label xrequired">模块标识</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" lay-reqText="模块标识不能为空" name="module" {if isset($flow)}value="{$flow.module}"{/if} placeholder="模块标识" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label xrequired">模块名称</label>
            <div class="layui-input-block">
                <input type="text" name="name" {if isset($flow)}value="{$flow.name}"{/if} placeholder="模块名称" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label xrequired">对应表</label>
            <div class="layui-input-block">
                <select name="id_type" lay-search>
                    <option value="">请选择</option>
                    {foreach $tables as $t}
                    <option {if isset($flow) && $flow.id_type==$t}selected{/if} value="{$t}">{$t}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-block">
                <input type="number" name="sort" {if isset($flow)}value="{$flow.sort}"{/if}placeholder="排序" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <input type="text" name="remark" {if isset($flow)}value="{$flow.remark}"{/if} placeholder="备注说明" class="layui-input">
            </div>
        </div>
        {if isset($flow)}
        <input type="hidden" name="flow_id" value="{$flow.flow_id}"/>
        {/if}
    </form>
</div>